package com.cq.hd.member.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class BusinessRechargeApplyPageVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "申请单号")
    private String applyNo;

    @ApiModelProperty(value = "商家id")
    private Long businessId;

    @ApiModelProperty(value = "商家编号")
    private String businessNo;

    @ApiModelProperty(value = "商家简称")
    private String businessShortName;

    @ApiModelProperty(value = "打款单号")
    private String paymentNo;

    @ApiModelProperty(value = "打款金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal tradeAmt;

    @ApiModelProperty(value = "打款凭证")
    private String paymentImage;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "申请时间")
    @JSONField(format = "yyyy.MM.dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "审核时间")
    @JSONField(format = "yyyy.MM.dd HH:mm:ss")
    private LocalDateTime auditTime;

    @ApiModelProperty(value = "状态（1-待审核，2-审核失败，3-审核成功）")
    private Integer state;

    @ApiModelProperty(value = "审核失败原因")
    private String refuseReason;
}
